import { defineStore } from "pinia";
import { store } from "@/store";
import ws from "@/api/ws";

export const useAlarmWebsocketStore = defineStore({
  id: "alarm-WebSocket",
  state: (): any => ({
    alarmPopUpsFlag: false,
    alarmData: {},
    alarmNotify: {}
  }),
  actions: {
    test() {
      ws();
    }
  }
});

export function useAlarmWebsocketHook() {
  return useAlarmWebsocketStore(store);
}
